module.exports = app => {
    const { STRING, TEXT, INTEGER } = app.Sequelize

    const Notes = app.model.define('notes', {
        ID: {
            type: INTEGER(8).UNSIGNED,
            primaryKey: true,
            autoIncrement: true
        },
        title: {
            type: STRING(32),
            allowNull: false
        },
        content: {
            type: STRING(50),
            allowNull: false
        },
        dateTime: {
            type: INTEGER(11).UNSIGNED,
            allowNull: false
        },
        upload: {
            type: STRING(50),
            allowNull: false
        },
        userID: {
            type: INTEGER(11),
            allowNull: false
        }
    })

    return Notes
}